function addTab(url,tabTitle) {
  if (!$('#tabs').tabs('exists', tabTitle)) {
       $('#tabs').tabs('add', {
            title: tabTitle,
            content: createFrame(url),
            closable: true,
            width: $('#mainPanle').width() - 10,
            height: $('#mainPanle').height() - 26
        });
    } else {
        $('#tabs').tabs('select', tabTitle);
    }
}

function createFrame(url) {
	  var s = '<iframe scrolling="no" frameborder="0"  src="' + url + '" style="width:100%;height:100%;"></iframe>';
    return s;
}